-- GENERATED SPELL FOR [Duskwither Apprentice] --


function spell0_15965(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(13860,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15965', 1500, 1)
end

function Sorts_15965(pUnit, Event)
local choix_sorts_15965 = math.random(0, 0)
if choix_sorts_15965 == 0 then
pUnit:RegisterEvent('spell0_15965', 1, 1)
end
end

function mob15965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15965', math.random(1500, 3000), 1)
end

function mob15965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15965, 1, 'mob15965_Action')
RegisterUnitEvent(15965, 2, 'mob15965_Leave')
RegisterUnitEvent(15965, 3, 'mob15965_Kill')
RegisterUnitEvent(15965, 4, 'mob15965_Die')
